package com.gt.wxpay.cashier.merchantNew.domain.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gt.wxpay.cashier.domain.model.BaseEntity;
import org.apache.ibatis.type.JdbcType;

import java.util.Date;

/**
 * 商户实体
 */
@TableName("cashier_merchant")
public class Merchant extends BaseEntity {

    /**
     * 手续费率
     */

    @TableField(value = "fee", jdbcType = JdbcType.NUMERIC)
    private Integer fee;
    /**
     * 结算周期
     */

    @TableField(value = "settle_period", jdbcType = JdbcType.NUMERIC)
    private Integer settlePeriod;
    /**
     * 银行卡号
     */


    @TableField(value = "bankcard_no", jdbcType = JdbcType.VARCHAR)
    private String bankcardNo;
    /**
     * 开户行名称
     */

    @TableField(value = "bank_name", jdbcType = JdbcType.VARCHAR)
    private String bankName;
    /**
     * 银行账号名
     */


    @TableField(value = "bank_account_name", jdbcType = JdbcType.VARCHAR)
    private String bankAccountName;
    /**
     * 是否需要转账，1-需要，0-不需要
     */

    @TableField(value = "need_transfer", jdbcType = JdbcType.NUMERIC)
    private Integer needTransfer;
    /**
     * 商户名称
     */

    @TableField(value = "name", jdbcType = JdbcType.VARCHAR)
    private String name;
    /**
     * 商户编号
     */

    @TableField(value = "merchant_no", jdbcType = JdbcType.VARCHAR)
    private String merchantNo;
    /**
     * 联系人手机号
     */


    @TableField(value = "mobile", jdbcType = JdbcType.VARCHAR)
    private String mobile;
    /**
     * 联系人姓名
     */


    @TableField(value = "contactor", jdbcType = JdbcType.VARCHAR)
    private String contactor;
    /**
     * 商户地址
     */


    @TableField(value = "address", jdbcType = JdbcType.VARCHAR)
    private String address;
    /**
     * 状态
     */

    @TableField(value = "status", jdbcType = JdbcType.NUMERIC)
    private Integer status;
    /**
     * 联系人邮箱
     */


    @TableField(value = "email", jdbcType = JdbcType.VARCHAR)
    private String email;
    /**
     * 激活日期
     */

    @JSONField(format = "yyyy-MM-dd")
    @TableField(value = "active_date", jdbcType = JdbcType.DATE)
    private Date activeDate;
    /**
     * 电话座机
     */

    @TableField(value = "telephone", jdbcType = JdbcType.VARCHAR)
    private String telephone;
    /**
     * 传真
     */


    @TableField(value = "fax", jdbcType = JdbcType.VARCHAR)
    private String fax;

    public Integer getFee() {
        return fee;
    }

    public void setFee(Integer fee) {
        this.fee = fee;
    }

    public Integer getSettlePeriod() {
        return settlePeriod;
    }

    public void setSettlePeriod(Integer settlePeriod) {
        this.settlePeriod = settlePeriod;
    }

    public String getBankcardNo() {
        return bankcardNo;
    }

    public void setBankcardNo(String bankcardNo) {
        this.bankcardNo = bankcardNo;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankAccountName() {
        return bankAccountName;
    }

    public void setBankAccountName(String bankAccountName) {
        this.bankAccountName = bankAccountName;
    }

    public Integer getNeedTransfer() {
        return needTransfer;
    }

    public void setNeedTransfer(Integer needTransfer) {
        this.needTransfer = needTransfer;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMerchantNo() {
        return merchantNo;
    }

    public void setMerchantNo(String merchantNo) {
        this.merchantNo = merchantNo;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getContactor() {
        return contactor;
    }

    public void setContactor(String contactor) {
        this.contactor = contactor;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getActiveDate() {
        return activeDate;
    }

    public void setActiveDate(Date activeDate) {
        this.activeDate = activeDate;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }
}
